{% load static %}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="{% static 'bootstrap-3.4.1/dist/css/bootstrap.min.css' %}">

</head>
<body>
<div class="container">
    <nav class="navbar navbar-default">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                        data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">小辉科技</a>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li class="active"><a href="#">Link <span class="sr-only">(current)</span></a></li>
                    <li><a href="/depart/">用户信息管理</a></li>
                    <li><a href="/goods/">商品管理</a></li>
                    <li><a href="/inout/">财务管理</a></li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                           aria-expanded="false">选项 <span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="#">个人资料</a></li>
                            <li><a href="/goods/">商品信息</a></li>
                            <li><a href="/inout/">收支分析</a></li>
                            <li role="separator" class="divider"></li>
                            <li><a href="#">供应商信息</a></li>
                            <li role="separator" class="divider"></li>
                            <li><a href="#">注销界面</a></li>
                        </ul>
                    </li>
                </ul>
                <form class="navbar-form navbar-left">
                    <div class="form-group">
                        <input type="text" class="form-control" placeholder="Search">
                    </div>
                    <button type="submit" class="btn btn-default">Submit</button>
                </form>
                <ul class="nav navbar-nav navbar-right">
                    <li><a href="#">来一个打赏吧亲</a></li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                           aria-expanded="false">登录状态：{{info_dict}}<span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="#">切换用户</a></li>
                            <li><a href="#">登出</a></li>
                            <li><a href="#">注销账号</a></li>
                            <li role="separator" class="divider"></li>
                            <li><a href="#">写给我们</a></li>
                        </ul>
                    </li>
                </ul>
            </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
    </nav>

    {% block content %}{% endblock %}
</div>

<div class="container">
<div class="jumbotron">
<h1>欢迎访问小辉科技</h1>
<p>...</p>
<p><a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a></p>
</div>
</div>


<div class="container">
    <table class="table  table-bordered">

        <thead>
        <tr>
            <td>ID</td>
            <td>手机号</td>
            <td>归属地</td>
        </tr>
        </thead>
        <tbody>
        {% for row in data %}
        <tr>
            <td>{{ row.id }}</td>
            <td>{{ row.phone }}</td>
            <td>{{ row.city }}</td>
        </tr>
        {% endfor %}
        <tr>
            <td>1</td>
            <td>1888888888</td>
            <td>上海</td>
        </tr>
        </tbody>
    </table>

</div>

<script src="{% static 'jquery.min.js'%}"></script>
<script src="{% static 'bootstrap-3.4.1/dist/js/bootstrap.min.js'%}"></script>
<script src="{% static 'bootstrap-3.4.1/dist/css/bootstrap.min.js'%}"></script>
</body>
</html>